<? if ($c = stack('name')) {

	$d = component_data($c); 
	$s = component_settings($c);

	addHead('xmlns:og', 'http://ogp.me/ns#', 'ns');
	addHead('xmlns:fb', 'http://www.facebook.com/2008/fbml', 'ns');
	
	addHead('og:title', $s['og_title']);
	addHead('og:type', $s['og_type']);
	addHead('og:site_name', $s['og_site_name']);
	addHead('og:description', $s['og_description']);
	addHead('og:latitude', $s['og_latitude']);
	addHead('og:longitude', $s['og_longitude']);
	addHead('og:street-address', $s['og_street_address']);
	addHead('og:locality', $s['og_locality']);
	addHead('og:region', $s['og_region']);
	addHead('og:postal-code', $s['og_postal_code']);
	addHead('og:country-name', $s['og_country_name']);
	addHead('og:email', $s['og_email']);
	addHead('og:phone_number', $s['og_phone_number']);
	addHead('og:fax_number', $s['og_fax_number']);

	$temp = array();
	if ($s['b_type']) $temp[] = 'layout="'.h($s['b_type']).'"';
	if ($s['b_show_faces']) $temp[] = 'show_faces="true"';
	if ((int)$s['b_width']) $temp[] = 'width="'.((int)$s['b_width']).'"';
	if ($s['b_verb']) $temp[] = 'action="'.h($s['b_verb']).'"';
	if ($s['b_font']) $temp[] = 'font="'.h($s['b_font']).'"';
	if ($s['b_color']) $temp[] = 'colorscheme="'.h($s['b_color']).'"';

	$DATA['components'][$c]['data'] = implode(' ', $temp);	

	unstack();
}